﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage/Admin.Master"
    CodeBehind="AdminUpdate.aspx.vb" Inherits="GoodAnotApp.UpdateDeleteShopOutletAdmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 523px;
        }
        .style3
        {
            width: 50%;
            height: 181px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="BusinessDetails">
        <asp:Panel ID="UpdateBusinessDetails" runat="server" Width="1063px">
            <table style="width: 100%; height: 181px;">
                <tr>
                    <td align="center" class="style2" rowspan="3">
                        <asp:Panel ID="BusinessDetailPanel" runat="server" Width="500px">
                            <table style="width: 50%; height: 181px;" width="500px">
                                <tr>
                                    <td class="style23">
                                        Business Name :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbxBusinessName" runat="server" Width="374px"></asp:TextBox>
                                        &nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style23">
                                        Category:
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True">
                                            <asp:ListItem>Select  Category</asp:ListItem>
                                            <asp:ListItem Value="Retail">Retail</asp:ListItem>
                                            <asp:ListItem>Fashion &amp; Clothing</asp:ListItem>
                                            <asp:ListItem>Beauty &amp; Sports</asp:ListItem>
                                            <asp:ListItem>Home &amp; Electronics</asp:ListItem>
                                            <asp:ListItem>Entertainment</asp:ListItem>
                                            <asp:ListItem>Night Clubs</asp:ListItem>
                                            <asp:ListItem>Gaming </asp:ListItem>
                                            <asp:ListItem>Cinema</asp:ListItem>
                                            <asp:ListItem>Arts</asp:ListItem>
                                            <asp:ListItem>Education</asp:ListItem>
                                            <asp:ListItem>Tuition Centre</asp:ListItem>
                                            <asp:ListItem>Enrichment Classes</asp:ListItem>
                                            <asp:ListItem>Health &amp; Beauty</asp:ListItem>
                                            <asp:ListItem>Doctors</asp:ListItem>
                                            <asp:ListItem>Dentists</asp:ListItem>
                                            <asp:ListItem>Hospitals</asp:ListItem>
                                            <asp:ListItem>Clinics</asp:ListItem>
                                            <asp:ListItem>Medical Spa / Spa</asp:ListItem>
                                            <asp:ListItem>Massage</asp:ListItem>
                                            <asp:ListItem>Makeup Artists</asp:ListItem>
                                            <asp:ListItem>Pets</asp:ListItem>
                                            <asp:ListItem>Pet Accessories</asp:ListItem>
                                            <asp:ListItem>Veterinarians</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style23">
                                        Website :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbxShopURL" runat="server" Width="376px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style23">
                                        Details :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbxShopDetails" runat="server" Height="102px" TextMode="MultiLine"
                                            Width="394px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style23">
                                        Image :
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr align="right">
                                    <td align="right" class="style18" colspan="2">
                                        <asp:Panel ID="PanelUpdateDelete" runat="server" Height="30px" Width="150px">
                                            <asp:Button ID="BtnBusinessUpdate" runat="server" Height="34px" Text="Update" Width="62px" />
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="BtnBusinessDelete" runat="server" Height="34px" Text="Delete" Width="62px" />
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                      
                        <asp:Panel ID="OutletDetailsPanel" runat="server" Width="500px">
                            <table class="style3" width="500px">
                                <tr>
                                    <td class="style21">
                                        Outlet Name :
                                    </td>
                                    <td class="style16">
                                        &nbsp;<asp:TextBox ID="tbxShopOutletName" runat="server" Height="27px" Width="375px"></asp:TextBox>
                                        <br />
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Outlet Address:
                                    </td>
                                    <td class="style16">
                                        &nbsp;<asp:TextBox ID="tbxOutletAddress" runat="server" Height="27px" Width="378px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Phone No:
                                    </td>
                                    <td class="style16">
                                        &nbsp;<asp:TextBox ID="tbxShopOutletTel" runat="server" Height="24px" Width="206px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Opening Hours:
                                    </td>
                                    <td class="style16">
                                        <asp:TextBox ID="tbxOpeningHours" runat="server" Width="309px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21">
                                        Remarks:
                                    </td>
                                    <td class="style16">
                                        <asp:TextBox ID="tbxRemarks" runat="server" Height="141px" TextMode="MultiLine" Width="312px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style21" colspan="2">
                                        <asp:Panel ID="PanelUpdateDelete0" runat="server" Height="30px" Width="150px">
                                            <asp:Button ID="BtnBusinessUpdate0" runat="server" Height="34px" Text="Update" Width="62px" />
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="BtnBusinessDelete0" runat="server" Height="34px" Text="Delete" Width="62px" />
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                    <td align="center" class="style3">
                        <asp:HiddenField ID="hfBusinessID" runat="server" />
                        <asp:HiddenField ID="hfOutletsID" runat="server" />
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                            SelectCommand="SELECT type, comment, ID FROM dashboard_report WHERE (report_ID = @report_ID)">
                            <SelectParameters>
                                <asp:Parameter Name="report_ID" DefaultValue="1" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
                            <AlternatingItemTemplate>
                                <span style="">type:
                                    <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
                                    <br />
                                    comment:
                                    <asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' />
                                    <br />
                                    ID:
                                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                                    <br />
                                    <br />
                                </span>
                            </AlternatingItemTemplate>
                            <EditItemTemplate>
                                <span style="">type:
                                    <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
                                    <br />
                                    comment:
                                    <asp:TextBox ID="commentTextBox" runat="server" Text='<%# Bind("comment") %>' />
                                    <br />
                                    ID:
                                    <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>' />
                                    <br />
                                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
                                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
                                    <br />
                                    <br />
                                </span>
                            </EditItemTemplate>
                            <EmptyDataTemplate>
                                <span>No data was returned.</span>
                            </EmptyDataTemplate>
                            <InsertItemTemplate>
                                <span style="">type:
                                    <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
                                    <br />
                                    comment:
                                    <asp:TextBox ID="commentTextBox" runat="server" Text='<%# Bind("comment") %>' />
                                    <br />
                                    ID:
                                    <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>' />
                                    <br />
                                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
                                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
                                    <br />
                                    <br />
                                </span>
                            </InsertItemTemplate>
                            <ItemTemplate>
                                <span style="">type:
                                    <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
                                    <br />
                                    comment:
                                    <asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' />
                                    <br />
                                    ID:
                                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                                    <br />
                                    <br />
                                </span>
                            </ItemTemplate>
                            <LayoutTemplate>
                                <div id="itemPlaceholderContainer" runat="server" style="">
                                    <span runat="server" id="itemPlaceholder" />
                                </div>
                                <div style="">
                                </div>
                            </LayoutTemplate>
                            <SelectedItemTemplate>
                                <span style="">type:
                                    <asp:Label ID="typeLabel" runat="server" Text='<%# Eval("type") %>' />
                                    <br />
                                    comment:
                                    <asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' />
                                    <br />
                                    ID:
                                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                                    <br />
                                    <br />
                                </span>
                            </SelectedItemTemplate>
                        </asp:ListView>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="style3">
                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>"
                            SelectCommand="SELECT dashboard_report.type, dashboard_report.comment, dashboard_report.ID FROM business INNER JOIN outlet ON business.business_ID = outlet.business_ID CROSS JOIN dashboard_report WHERE (dashboard_report.type = 'Incorrect Information of Outlets' OR dashboard_report.type = 'Proposed Deletion of Outlets') AND (outlet.outlet_ID = @outletID)">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="" Name="outletID" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
</asp:Content>
